<template>
	<view class="content">
		

			<view class="tech-bg">
				<view class="tech-eva-con">
					

					<view style="margin-top: 30rpx;height: auto;" >

						<view v-for="(item_i,index) in talk_list" class="tech-eva-int1">
							<!-- <view class="tech-eva-img1">
								<image src="/static/default.png" mode="widthFix"></image>
							</view> -->
							<view class="tech-eva-rec1">
								<view class="tech-eva-tit1">
									<view class="tech-eva-tit-lf">
										<text>匿名用户</text>
										<text class="iconfont icon-xingxing">{{item_i.service_level}}</text>
										<!-- <text class="iconfont icon-xingxing"></text> -->
										<!-- <text class="iconfont icon-xingxing"></text> -->
										<!-- <text class="iconfont icon-xingxing"></text> -->
									</view>
									<view class="tech-eva-time">{{item_i.add_time_time}}</view>
								</view>
								<view class="tech-eva-des1">
									<view class="tech-eva-tag">
										<text v-for="(title,index) in item_i.titles">{{title}}</text>
									</view>
									<view class="tech-eva-des2">
										{{item_i.content}}
									</view>
								</view>
							</view>
						</view>

					</view>

					<text class="iconfont icon-guanbi"></text>
				</view>
			</view>
		</view>

</template>

<script>
	const app = getApp();
	const request = require('../../utils/request');
	

	export default {
		data() {
			return {
				techn_id:0,
				talk_list:null,
				page:1
			}
		},

		onLoad(options) {
			this.get_talk_list();
		},
		onShow() {

		},
		onHide() {
			// this.techn_map.page = 1;
			// this.techn_list = [];
		},
		
		methods: {
			get_talk_list:function(){
				var that = this;
				let formData = {
					page:that.page
				}
				request(app.globalData.api_url+'/v1/talk/talk_list', 'POST', formData).then((res) => {
					uni.showToast({
						title:res.data.msg,
						icon:'none'
					});
					if(res.data.code == 0){
						console.log(res.data.data);
						that.talk_list = res.data.data;
					}else{
						app.is_login_check(res.data);
						app.is_techn_check(res.data);
					}
				});
			}
		},
		
	}
</script>
<style lang="scss">
	page {
		background-color: $uni-bg-color-grey;
	}

	.content {
		.nodata {
			margin-top: 40%;
			text-align: center;
			color: #ccc;

			.nodata-icon {
				text {
					font-size: 160rpx;
				}
			}

			.nodata-tit {
				margin-top: 20rpx;
				font-size: 28rpx;
			}

			.vote {
				width: 80%;
				padding: 30rpx;
				border-radius: 20rpx;
				margin: 50rpx auto 0;
				background: rgba(36, 201, 107, 0.2);
				color: #000;

				.vote-tp {
					font-weight: bold;
					font-size: 30rpx;
				}

				.vote-mi {
					font-size: 24rpx;
					margin: 30rpx 0;

					text {
						color: #f00;
						font-size: 40rpx;
					}
				}

				.vote-bt {
					margin-bottom: 20rpx;

					text {
						border-radius: 30rpx;
						font-size: 24rpx;
						padding: 10rpx 50rpx;
						color: #fff;
						background: rgb(36, 201, 107);
					}
				}
			}
		}

		.tech-order {
			padding-top: 30rpx;
			display: flex;
			justify-content: space-between;
			border-top: 1px solid #eee;

			.tech-price {
				text {
					font-size: 28rpx;

					&:last-child {
						font-weight: bold;
						color: #ff0000;
					}
				}
			}

			.tech-btn {
				text {
					padding: 16rpx 40rpx;
					color: #fff;
					font-size: 28rpx;
					border-radius: 30rpx;
					background-color: $uni-text-color-active;
				}
			}
		}

		.tech-loc {
			position: relative;
			padding: 25rpx 20rpx;
			background-color: $uni-text-color-active;

			text {
				color: #fff;
				font-size: 30rpx;

				&:nth-child(2) {
					margin: 0 10rpx;
				}
			}
		}

		.tech-search {
			padding: 20rpx;
			display: flex;
			background-color: #fff;

			.tech-search-lf {
				line-height: 60rpx;

				text {
					&:first-child {
						font-size: 30rpx;
					}
				}
			}

			.tech-search-rt {
				margin-left: 20rpx;
				border-radius: 30rpx;
				display: flex;
				flex: 1;
				background-color: $uni-bg-color-grey;

				text {
					margin: 0 0 0 20rpx;
					height: 60rpx;
					line-height: 60rpx;
				}

				.tech-input {
					flex: 1;
					padding: 0 20rpx 0 10rpx;
					height: 60rpx;
					line-height: 60rpx;
					font-size: 28rpx;
				}
			}
		}

		.tech-con {
			margin: 30rpx 20rpx;
			padding: 30rpx;
			// background-color: #fff;
			border-radius: 20rpx;
			box-shadow: rgba(0, 0, 0, 0.1) 0 12rpx 12rpx;

			.tech-con-tp {
				display: flex;

				.tech-img {
					width: 130rpx;
					height: 130rpx;
					border-radius: 50%;
					// overflow: hidden;
					margin-right: 20rpx;

					image {
						width: 100%;
					}
				}

				.tech-int {
					flex: 1;

					.tech-name {
						display: flex;
						flex: 2;

						.tech-photo {

							// flex: 2;
							text {
								&:first-child {
									font-size: 32rpx;
									font-weight: bold;
									margin-right: 20rpx;
								}

								&:last-child {
									padding: 4rpx 8rpx;
									font-size: 24rpx;
									border-radius: 10rpx;
									color: $uni-text-color-active;
									border: 1px solid $uni-text-color-active;
								}
							}
						}

						.tech-time {
							flex: 1.5;
							text-align: right;

							text {
								color: rgb(119, 119, 119);
								font-size: 24rpx;

								&:last-child {
									margin-left: 4rpx;
									padding: 0 6rpx;
									color: $uni-text-color-active;
									background-color: #e3fffd;
									font-weight: bold;
								}
							}
						}
					}

					.tech-col {
						margin: 16rpx 0;
						display: flex;
						justify-content: space-between;
						font-size: 28rpx;

						.tech-col-lf {
							text {
								&:first-child {
									color: #fb8100;
									margin-right: 20rpx;
								}
							}
						}

						.tech-col-rt {
							text {
								font-size: 28rpx;

								&:before {
									color: $uni-text-color-active;
								}
							}
						}
					}
				}
			}

			.tech-con-bot {
				margin-top: 20rpx;
				display: flex;

				.tech-state {
					width: 120rpx;
					text-align: center;
					margin-right: 20rpx;

					text {
						padding: 2rpx 16rpx;
						border-radius: 20rpx;
						color: #fff;
						background-color: #fb8100;
						font-size: 24rpx;

						&.tech-ser {
							background-color: $uni-text-color-active;
						}

						&.tech-rest {
							background-color: #cccccc;
						}
					}
				}

				.tech-eva {
					display: flex;
					flex: 1;
					justify-content: space-between;

					.tech-eva-lf {
						text {
							color: rgb(119, 119, 119);
							font-size: 28rpx;
							margin-right: 18rpx;

							&.icon-xinheart118:before {
								color: $uni-text-color-active;
							}
						}
					}

					.tech-eva-rt {
						text {
							padding: 10rpx 20rpx;
							border-radius: 12rpx;
							color: #fff;
							background-color: $uni-text-color-active;
							font-size: 28rpx;
						}
					}
				}
			}
		}

		.order_num {
			font-size: 26rpx;
		}

		.tech-bg {
			width: 100%;
			height: 100%;
			// position: fixed;
			top: 0;
			left: 0;
			z-index: 999;

			background-color:rgba(0,0,0,0.5);
			.tech-eva-con {
				max-height: 100%;
				border-radius: 20rpx 20rpx 0 0;
				padding: 30rpx;
				position: absolute;
				left: 0;
				right: 0;
				bottom: 0;
				background-color: #fff;

				.icon-guanbi {
					position: absolute;
					top: 10rpx;
					right: 10rpx;
					font-size: 50rpx;
				}

				.tech-eva-int {
					display: flex;
					padding-bottom: 30rpx;
					border-bottom: 1px solid #eee;

					.tech-eva-img {
						width: 100rpx;
						height: 100rpx;
						border-radius: 50%;
						// overflow: hidden;
						margin-right: 20rpx;

						image {
							width: 100%;
						}
					}

					.tech-eva-rec {
						flex: 1;

						.tech-eva-tit {
							margin-bottom: 10rpx;

							text {
								&:first-child {
									font-size: 32rpx;
									margin-right: 10rpx;
								}

								&:last-child {
									font-size: 28rpx;
									color: rgb(119, 119, 119);
								}
							}
						}

						.tech-eva-des {
							font-size: 24rpx;
							color: rgb(119, 119, 119);
						}
					}
				}

				.tech-eva-int1 {
					display: flex;
					padding: 30rpx 0;
					border-bottom: 1px solid #eee;

					.tech-eva-img1 {
						width: 60rpx;
						height: 60rpx;
						border-radius: 50%;
						// overflow: hidden;
						margin-right: 20rpx;

						image {
							width: 100%;
						}
					}

					.tech-eva-rec1 {
						flex: 1;

						.tech-eva-tit1 {
							display: flex;
							margin-bottom: 10rpx;
							justify-content: space-between;

							.tech-eva-tit-lf {
								text {
									&:first-child {
										font-size: 28rpx;
										margin-right: 10rpx;
									}

									&.icon-xingxing {
										font-size: 28rpx;
										color: #fb8100;
									}
								}
							}

							.tech-eva-time {
								font-size: 24rpx;
								color: rgb(119, 119, 119);
								margin-top: 10rpx;
							}
						}

						.tech-eva-des1 {
							font-size: 28rpx;
							color: rgb(119, 119, 119);

							.tech-eva-tag {
								text {
									display: inline-block;
									font-size: 24rpx;
									border-radius: 20rpx;
									padding: 6rpx 15rpx;
									margin: 10rpx 10rpx 0 0;
									background-color: #eee;
								}
							}

							.tech-eva-des2 {
								margin-top: 20rpx;
								font-size: 24rpx;
							}
						}
					}
				}

				.service {
					display: flex;
					padding: 30rpx 10rpx;
					border-bottom: 1px solid #eee;

					.ser-img {
						width: 160rpx;
						height: 160rpx;
						border-radius: 14rpx;
						background-position: 50%;
						background-repeat: no-repeat;
						background-size: cover;
						margin-right: 20rpx;
					}

					.ser-con {
						flex: 1;

						.ser-tit {
							display: flex;
							justify-content: space-between;

							text {
								&:first-child {
									font-weight: bold;
									font-size: 30rpx;
								}

								&:last-child {
									font-size: 24rpx;
									text-align: right;
									color: $uni-text-color-grey;
								}
							}
						}

						.ser-des {
							font-size: 24rpx;
							color: $uni-text-color-grey;
							margin: 14rpx 0 18rpx;
						}

						.ser-pri {
							display: flex;

							.ser-pri-lf {
								flex: 2;

								text {
									&:first-child {
										padding: 0 6rpx;
										color: rgb(255, 225, 177);
										font-size: 20rpx;
										background-color: #000;
									}

									&:nth-child(2) {
										font-size: 32rpx;
										font-weight: bold;
										color: #ff0000;
										margin: 0 2rpx 0 15rpx;

										&::before {
											content: "￥";
											font-weight: normal;
											font-size: 24rpx;
										}
									}

									&:last-child {
										font-size: 20rpx;
										text-decoration: line-through;
										color: $uni-text-color-grey;
									}
								}
							}

							.ser-pri-rt {
								flex: 1;
								// text-align: right;
								display: flex;
								align-items: center;
								justify-content: flex-end;

								text {
									&.icon-jianshao {
										font-size: 48rpx;
										color: $uni-text-color-active;
									}

									&.num {
										margin: 0 20rpx;
										font-size: 34rpx;
									}

									&.icon-node-add_fill {
										font-size: 48rpx;
										color: $uni-text-color-active;
									}
									&.icon-xiangqing{
									}
								}
							}
						}
					}
				}

				.servew {
					display: flex;
					align-items: center;

					.serve {
						display: flex;
						align-items: center;
						justify-content: center;
						width: 170rpx;
						height: 80rpx;
						border-radius: 20rpx;
						background-color: #f5f5f5;
						color: #000;
						font-size: 28rpx;
						margin: 0 16rpx;
					}

					.cur {
						background-color: #36c76a;
						color: #fff;
					}
				}


			}
		}
	}

	.sort {
		height: 70rpx;
		line-height: 70rpx;
		border-radius: 20rpx;
		display: flex;
		background-color: $uni-text-color-inverse;
		// box-shadow: rgba(0, 0, 0, 0.1) 0 12rpx 12rpx;
		border-bottom: 12rpx solid #f1f1f1;

		.scroll-box {
			display: flex;
			align-items: center;
		}

		text {
			flex: 1;
			text-align: center;
			font-size: 28rpx;

			&.active {
				color: $uni-text-color-active;
				font-weight: bold;
			}
		}
	}
	.isguan{
		width: 240rpx;
		height: 240rpx;
		float:left;
		position: absolute;
		z-index: 990;
		margin-left: -54rpx;
		margin-top: -54rpx;
	}
	.ishot{
		width: 40rpx;
		height: 60rpx;
		position: absolute;
		float: left;
		margin-left:90rpx;
		z-index: 991;
		margin-top:-20rpx
	}
	.isnew{
		width: 60rpx;
		height: 60rpx;
		position: absolute;
		float: left;
		margin-left:-20rpx;
		z-index: 991;
		margin-top:-14rpx
	}
	// .isguan:nth-of-type(1){
	// 	margin-top: 0rpx;
	// }
	
</style>